using System.Collections;
using System.Collections.Generic;
using UnityEngine;



namespace DesignPatterns.LSP
{
    public class InvulnerabilityPowerUp : PowerUp
    {
        public override void ApplyEffect(GameObject player)
        {
            Invulnerability invulnerability = player.GetComponent<Invulnerability>();

            if (invulnerability != null)
            {
                invulnerability.Activate(m_Duration);
            }
        }
    }
}
